<template>
  <div ref="split" class="split">
  </div>
</template>

<script setup lang="ts">

defineOptions({
  name: "DeviceView",
  components: {}
});


import { useDeviceStore } from "../store/deviceStore";
import { useDeviceViewStore } from "../store/deviceView";
const deviceView = useDeviceViewStore();

const dataEvent = (eventData: any) => {
  console.log("子组件收到数据了", eventData);
}

defineExpose({
  dataEvent
})

// 2. 实例化组合式 store
const deviceStore = useDeviceStore();

// 验证存储结果
console.log("存储后 Pinia 中的值：", deviceStore.sendDeviceCmd);



</script>

<style lang="scss" scoped></style>
